package controllers

import (
	"lottery_code/models"
	"lottery_code/services"
	"time"
)

func (api *LuckyApi)checkBlackUser(uid int)(bool,*models.LtUser){
	userService:=services.NewUserService()
	info:=userService.Get(uid)
	if info!=nil&&info.Blacktime>int(time.Now().Unix()){
		//黑名单存在并且有效
		return false,info
	}
	return true,info
}
